package com.hfdg.od.model;

/**
 * @ClassName ResponseResult
 * @Description TODO
 * @Author yuelh
 * @Date 2020-7-31 17:04
 * @Version 1.0
 * @Company 会飞的锅工作室
 **/
public class ResponseResult {
    int code;
    String message;
    Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public  static ResponseResult success(){
        ResponseResult responseResult = new ResponseResult();
        responseResult.setCode(0);
        responseResult.setMessage("success");
        return responseResult;
    }
    public  static ResponseResult success(Object data){
        ResponseResult responseResult = new ResponseResult();
        responseResult.setCode(0);
        responseResult.setMessage("success");
        responseResult.setData(data);
        return responseResult;
    }

}
